<?php

require_once('AnalyzeStrategyInterface.php');

class CapitalLettersAnalyzeStrategy implements AnalyzeStrategyInterface {
    
    /**
     *
     * @param string $string
     * @return int 
     */
    public function analyze($string) {        
        return preg_match_all('/[A-Z]/', $string, $match);
    }
}